package com.imooc.miaosha.service.impl;

import com.imooc.miaosha.dao.SustinLogMapper;
import com.imooc.miaosha.pojo.SustinLog;
import com.imooc.miaosha.service.SustinLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SustinLogServiceImpl implements SustinLogService {
    @Autowired
    SustinLogMapper sustinLogMapper;

    @Override
    public List<SustinLog> sustinLogList() {
        return sustinLogMapper.listSustinLog();
    }

    public int count() {
        return sustinLogMapper.countSustinLog();
    }
}
